package commit

import (
	"github.com/bwmarrin/snowflake"
	_ "github.com/bwmarrin/snowflake"
)

// IDnode ID节点实例
var IDnode *snowflake.Node

// SetIDNode 设置ID节点
func SetIDNode() error {
	var err error
	IDnode, err = snowflake.NewNode(0)
	if err != nil {
		return err
	}
	return nil
}
